<?php
/**
 * Created by PhpStorm.
 * User: changshuiwang
 * Date: 2016/7/28
 * Time: 10:38
 */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use backend\assets\AppAsset;
use backend\config\ScoreDef;
use backend\config\StudentDef;

//$this->title = 'Add';
//$this->params['breadcrumbs'][] = $this->title;

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <link href="/assets/c1fad91c/css/bootstrap.css" rel="stylesheet">
    <link href="/css/site.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" href="/css/fullcalendar.css" />
    <link rel="stylesheet" href="/css/matrix-style.css" />
    <link rel="stylesheet" href="/css/matrix-media.css" />
    <link rel="stylesheet" href="/css/font-awesome/css/font-awesome.css" />
    <link rel="stylesheet" href="/css/jquery.gritter.css" />
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
    <script src="/js/jquery-1.9.1.min.js"></script>
    <script src="/js/score/add.js"></script>
    <style>
        #content{
            margin-left: 0px;
            padding:0px;
            height:760px;
        }
        #content input[type='text']{
            width:60%;
        }
        .widget-box{
            margin-top: 0;
        }
    </style>
</head>
<body>
<div id="content">
<!--    <div id="content-header">
        <div id="breadcrumb"> <a href="/site/index" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
            <a href="#" class="tip-bottom">add</a></div>
        <h1></h1>
    </div>-->
    <div class="widget-box">
        <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
            <h5><?= Html::encode($this->title) ?></h5>
        </div>
        <div class="widget-content nopadding">
            <form action="#" method="get" class="form-horizontal update-score">
                <div class="control-group">
                    <label class="control-label">学生id :</label>
                    <div class="controls">
                        <input type="text" class="span11" name="stu_id" >
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">学生成绩 :</label>
                    <div class="controls">
                        <input type="text" class="span11" name="score" >
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">成绩类别 :</label>
                    <div class="controls">
                        <div class="select2-container" id="s2id_autogen1">
                        <select name="type" class="span11" style="width:315px">
                            <?php
                                foreach (ScoreDef::$type_arr as $k=>$v){
                                    ?>
                                    <option value="<?=$k?>"><?=$v?></option>
                            <?php
                                }
                            ?>
                        </select>
                    </div>
                </div>
                <div class="form-actions">
                    <button type="submit" class="btn btn-success">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
